﻿using hutil;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 namespace hcache {
    public class PlcCarrierPoint : RAM,CacheData {
         public int p;
        public int ROffset;
        public short WOffset;
        public int PlcId;
        public PlcCarrierPoint ( ) {
             
        }
        public PlcCarrierPoint(int pathNo ,int rOffset ,int wOffset ,int plcId) {
            this.p = pathNo;
            this.ROffset = rOffset;
            this.WOffset = (short)wOffset;
            this.PlcId = plcId;
        }
         public PlcCarrierPoint(int pathNo ,int rOffset ,int wOffset) {
            this.p = pathNo;
            this.ROffset = rOffset;
            this.WOffset = (short)wOffset;
            this.PlcId = 1;
        }

        public string getId () {
            return p + "";
        }
    }
}
